package md5

import (
	"crypto/md5"
	"encoding/hex"
)

func Md5Encode(data string) string {
	hash := md5.New()
	hash.Write([]byte(data))
	bytes := hash.Sum(nil)
	result := hex.EncodeToString(bytes)
	return result
}
